class LoginModel {
	String msg;
	String code;
	dynamic retain;
	LoginModelDetail detail;
	dynamic error;

	LoginModel({this.msg, this.code, this.retain, this.detail, this.error});

	LoginModel.fromJson(Map<String, dynamic> json) {
		msg = json['msg'];
		code = json['code'];
		retain = json['retain'];
		detail = json['detail'] != null ? new LoginModelDetail.fromJson(json['detail']) : null;
		error = json['error'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['msg'] = this.msg;
		data['code'] = this.code;
		data['retain'] = this.retain;
		if (this.detail != null) {
      data['detail'] = this.detail.toJson();
    }
		data['error'] = this.error;
		return data;
	}
}

class LoginModelDetail {
	dynamic spell;
	dynamic deptName;
	dynamic roleId;
	String sex;
	int deptId;
	dynamic admin;
	dynamic wxId;
	dynamic dataIds;
	String userGuid;
	String lastLoginIp;
	dynamic token;
	String lastLoginTime;
	String phone;
	String name;
	dynamic roleName;
	bool reset;
	int id;
	String account;
	String email;

	LoginModelDetail({this.spell, this.deptName, this.roleId, this.sex, this.deptId, this.admin, this.wxId, this.dataIds, this.userGuid, this.lastLoginIp, this.token, this.lastLoginTime, this.phone, this.name, this.roleName, this.reset, this.id, this.account, this.email});

	LoginModelDetail.fromJson(Map<String, dynamic> json) {
		spell = json['spell'];
		deptName = json['deptName'];
		roleId = json['roleId'];
		sex = json['sex'];
		deptId = json['deptId'];
		admin = json['admin'];
		wxId = json['wxId'];
		dataIds = json['dataIds'];
		userGuid = json['userGuid'];
		lastLoginIp = json['lastLoginIp'];
		token = json['token'];
		lastLoginTime = json['lastLoginTime'];
		phone = json['phone'];
		name = json['name'];
		roleName = json['roleName'];
		reset = json['reset'];
		id = json['id'];
		account = json['account'];
		email = json['email'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['spell'] = this.spell;
		data['deptName'] = this.deptName;
		data['roleId'] = this.roleId;
		data['sex'] = this.sex;
		data['deptId'] = this.deptId;
		data['admin'] = this.admin;
		data['wxId'] = this.wxId;
		data['dataIds'] = this.dataIds;
		data['userGuid'] = this.userGuid;
		data['lastLoginIp'] = this.lastLoginIp;
		data['token'] = this.token;
		data['lastLoginTime'] = this.lastLoginTime;
		data['phone'] = this.phone;
		data['name'] = this.name;
		data['roleName'] = this.roleName;
		data['reset'] = this.reset;
		data['id'] = this.id;
		data['account'] = this.account;
		data['email'] = this.email;
		return data;
	}
}
